package com.example.ibsp_demo.pojo.entity.user;

public class NotificationSetting {

    private Integer settingId;      // 通知设置ID
    private Integer uid;            // 用户ID
    private Integer likeNotify;        // 点赞通知开关 (1-开启, 0-关闭)
    private Integer commentNotify;     // 评论通知开关 (1-开启, 0-关闭)
    private Integer followNotify;      // 关注通知开关 (1-开启, 0-关闭)
    private Integer pmNotify;          // 私信通知开关 (1-开启, 0-关闭)

    // 无参构造
    public NotificationSetting() {
    }

    // 有参构造
    public NotificationSetting(Integer settingId, Integer uid, Integer likeNotify, Integer commentNotify, Integer followNotify, Integer pmNotify) {
        this.settingId = settingId;
        this.uid = uid;
        this.likeNotify = likeNotify;
        this.commentNotify = commentNotify;
        this.followNotify = followNotify;
        this.pmNotify = pmNotify;
    }

    // Getter and Setter

    public Integer getSettingId() {
        return settingId;
    }

    public void setSettingId(Integer settingId) {
        this.settingId = settingId;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getLikeNotify() {
        return likeNotify;
    }

    public void setLikeNotify(Integer likeNotify) {
        this.likeNotify = likeNotify;
    }

    public Integer getCommentNotify() {
        return commentNotify;
    }

    public void setCommentNotify(Integer commentNotify) {
        this.commentNotify = commentNotify;
    }

    public Integer getFollowNotify() {
        return followNotify;
    }

    public void setFollowNotify(Integer followNotify) {
        this.followNotify = followNotify;
    }

    public Integer getPmNotify() {
        return pmNotify;
    }

    public void setPmNotify(Integer pmNotify) {
        this.pmNotify = pmNotify;
    }

    // toString 方法
    @Override
    public String toString() {
        return "NotificationSetting{" +
                "settingId=" + settingId +
                ", uid=" + uid +
                ", likeNotify=" + likeNotify +
                ", commentNotify=" + commentNotify +
                ", followNotify=" + followNotify +
                ", pmNotify=" + pmNotify +
                '}';
    }
}
